﻿using Microsoft.VisualBasic.FileIO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zann.Iris
{
    public class Help
    {
        public void parse_file()
        {
            using (TextFieldParser parser = new TextFieldParser("D:\\WebSites\\etracks\\Zann.Iris\\data\\iris.data"))
            {
                parser.Delimiters = new string[] { "," };
                while (true)
                {
                    string[] parts = parser.ReadFields();
                    if (parts == null)
                    {
                        break;
                    }
                    Console.WriteLine("{0} field(s)", parts.Length);
                }
            }
        }
    }
}
